// "total": 46,
//     "items": [
//       {
//         "id": "string",
//         "gmtCreate": "2022-09-28 22:55:49",
//         "gmtModified": "2022-09-28 22:55:49",
//         "deleted": false,
//         "username": "fgfdgdffdh",
//         "password": "b45cffe084dd3d20d928bee85e7b0f21",
//         "nickName": "string",
//         "salt": "string",
//         "token": "string",
//         "roleName": "测试测试,平台管理员,66,全是科技与狠活,管理员3,小二,管理,厉飞,啊啊啊啊,阿达1111222"
//       }
//     ]
export interface getUserListParams {
  page: number;
  limit: number;
  username: string;
}

export interface addUserParams {
  username: string;
  password: string;
  nickName: string;
}

export interface UserItem extends addUserParams {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  roleName: string;
}

export type UserList = UserItem[];

export interface UserListRes {
  total: number;
  items: UserList;
}

// "assignRoles": [],
//     "allRolesList": [
//       {
//         "id": "0",
//         "gmtCreate": "2022-09-28 10:10:26",
//         "gmtModified": "2022-09-28 10:10:26",
//         "deleted": false,
//         "roleName": "测试测试",
//         "remark": ""
//       },

export interface RoleItem {
  id: string;
  roleName: string;
}

export type RoleList = RoleItem[];

export interface GetRoleListRes {
  assignRoles: RoleList; //选中的
  allRolesList: RoleList; //全部
}
